from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWebKitWidgets import QWebPage, QWebView
from PyQt5.QtWidgets import QApplication, QMainWindow
import sys


class myQWebView(QWebView):
    def mousePressEvent(self, event):
        super(myQWebView, self).mousePressEvent(event)
        print("myQWebView, mousePressEvent ", event)

    def mouseReleaseEvent(self, event):
        super(myQWebView, self).mouseReleaseEvent(event)
        print("myQWebView, mouseReleaseEvent ", event.pos())

    def mouseDoubleClickEvent(self, event):
        super(myQWebView, self).mouseDoubleClickEvent(event)
        print("myQWebView, mouseDoubleClickEvent ", event)

    def mouseMoveEvent(self, event):
        super(myQWebView, self).mouseMoveEvent(event)
        #print("myQWebView, mouseMoveEvent ", event)




app = QApplication(sys.argv)



webView = myQWebView()
url = 'http://127.0.0.1:6081/vnc_auto.html'
webView.setUrl(QtCore.QUrl(url))
webView.setObjectName("webView")

webView.show()

app.exec_()